Skip to content

Conversation

@Thibault00
Copy link
Contributor

@Thibault00 Thibault00 commented Aug 26, 2025

App Version
Latest

API Provider
Requesty

Model Used
N/A

Roo Code Task Links (Optional)
When you click on Requesty API key from the settings and get redirected to the Requesty url, you will now create a new profile in order to be able to use the newly created api key.

🔁 Steps to Reproduce
Use Requesty as a provider when starting Roo-Code
Click "Get Requesty API Key" and you'll see get redirected to Requesty. After the redirect from Requesty to Roo Code a new profile would have been created with the new api key.


Important

In ClineProvider.ts, handleRequestyCallback() now creates a new profile with a unique name when redirected from Requesty to ensure settings refresh.

  • Behavior:
    • In ClineProvider.ts, handleRequestyCallback() now creates a new profile with a unique name when redirected from Requesty, ensuring settings refresh.
    • Uses requesty-oauth as the profile name if the current profile is default.
  • Misc:
    • Adds a comment explaining the purpose of creating a new profile with a unique name.

This description was created by Ellipsis for 742b010. You can customize this summary. It will automatically update as commits are pushed.

@Thibault00 Thibault00 requested review from cte, jr and mrubens as code owners August 26, 2025 16:12
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Aug 26, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! I've reviewed the changes and found several issues that need attention.


await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
// Create a new profile with a unique name to trigger settings refresh
const newProfileName = currentApiConfigName === "default" ? "requesty-oauth" : currentApiConfigName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical Issue: This could cause a profile name collision. What happens if a profile named "requesty-oauth" already exists? Consider checking for existing profiles or generating a unique name:

Suggested change
const newProfileName = currentApiConfigName === "default" ? "requesty-oauth" : currentApiConfigName
// Create a new profile with a unique name to trigger settings refresh
let newProfileName = currentApiConfigName === "default" ? "requesty-oauth" : currentApiConfigName
// Ensure the profile name is unique
if (this.hasProviderProfileEntry(newProfileName)) {
newProfileName = `requesty-oauth-${Date.now()}`
}
await this.upsertProviderProfile(newProfileName, newConfiguration)

}

await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
// Create a new profile with a unique name to trigger settings refresh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistency with other OAuth providers: I notice that OpenRouter (line 1383) and Glama (line 1413) OAuth callbacks update the existing profile, while Requesty creates a new one. Is this intentional? This inconsistency could confuse users who expect similar behavior across providers. Could you explain why Requesty needs different behavior?

await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
// Create a new profile with a unique name to trigger settings refresh
const newProfileName = currentApiConfigName === "default" ? "requesty-oauth" : currentApiConfigName
await this.upsertProviderProfile(newProfileName, newConfiguration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing error handling: Unlike the OpenRouter and Glama callbacks which have try-catch blocks for API calls, this method doesn't validate the code parameter or handle potential errors. Consider adding validation at the start of the method.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Aug 26, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Aug 26, 2025
@daniel-lxs
Copy link
Member

Thank you @Thibault00!

I am having some issues testing this, here's what I'm seeing in the requesty page:

image

Not directly related to the PR but I'm unable to test it.

Also @hannesrudolph can we provide Requesty our updated logo so that their dialog uses that?

@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Aug 26, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Changes Requested] in Roo Code Roadmap Aug 26, 2025
@github-project-automation github-project-automation bot moved this from PR [Changes Requested] to Done in Roo Code Roadmap Sep 23, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 23, 2025
@hannesrudolph
Copy link
Collaborator

Stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PR - Changes Requested size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants